package org.eden.rpc.service;

import org.eden.rpc.common.service.blog.ArticleService;
import org.eden.rpc.core.client.NettyClient;
import org.eden.rpc.core.client.NettyClientProxy;
import org.eden.rpc.core.client.RpcClient;

public class ClientAppTest {
    public static void main(String[] args) {
        RpcClient client = new NettyClient("127.0.0.1", 8888);
        NettyClientProxy clientProxy = new NettyClientProxy(client);

        ArticleService articleService = clientProxy.createInstance(ArticleService.class);
        System.out.println(articleService.getArticles());
    }
}
